package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import one.stand.dto.PageResponse2;

/**
 * @author cjr
 */
@Data
@Builder
public class UserCommentResponse {
    @ApiModelProperty(value = "评论列表，分页", dataType = "UserCommentResponse.Comment")
    private PageResponse2<Comment> commentPage;

    @ApiModel("UserCommentResponse.Comment")
    @Data
    @Builder
    public static class Comment {
        @ApiModelProperty("评论ID")
        private Integer commentId;
        @ApiModelProperty("评论内容")
        private String content;
        @ApiModelProperty("评论时间")
        private Long time;
        @ApiModelProperty("评论对象类型：1文章 2动态")
        private Integer type;
        @ApiModelProperty("评论对象ID")
        private Integer dynamicId;
        @ApiModelProperty("评论对象图片")
        private String dynamicPhoto;
        @ApiModelProperty("评论人头像")
        private String userImg;
        @ApiModelProperty("评论人ID")
        private Integer userId;
    }
}
